package com.dong.aoptools.view.handlerview;

import com.dong.aoptools.premain.handler.CommonHandler;

import javax.swing.*;
import java.awt.*;

/**
 * @description: 处理视图公共接口
 * @author: 陈瑞东
 * @create: 2021-11-30 09:40
 */
public abstract class CommonHandlerView extends JPanel {

    boolean isInit = false;

    public CommonHandlerView init() {
        if (isInit()) {
            return this;
        }
        isInit = true;
        return subInit();
    }

    public abstract CommonHandlerView subInit();

    public boolean isInit() {
        return isInit;
    }
}
